﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ParboiledSharp.lang.roboline.ast
{
    class PushBoolean : AbstractChunk
    {
        private bool _value;

        public PushBoolean(bool value)
        {
            _value = value;
        }

        public override int Execute(context.ExecContext context)
        {
            context.Push(_value);
            return getNextChunkOffset();
        }

        public override string ToString()
        {
            return "PushBoolean " + _value;
        }
    }
}